

using System;
using Abp.Application.Services.Dto;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;
using Yozeev.BusinessLogic;

namespace Yozeev.BusinessLogic.Dtos
{
    public class PriceAuditListDto : ByBranchEntityDto<Guid> 
    {




        /// <summary>
        /// TicketId
        /// </summary>
        public Guid TicketId { get; set; }



		/// <summary>
		/// Ticket
		/// </summary>
		public Ticket Ticket { get; set; }



		/// <summary>
		/// OrgTicketPriceId
		/// </summary>
		public Guid? OrgTicketPriceId { get; set; }



		/// <summary>
		/// OrgTicketPrice
		/// </summary>
		public TicketPrice OrgTicketPrice { get; set; }



		/// <summary>
		/// IsEnabled
		/// </summary>
		public bool IsEnabled { get; set; }



		/// <summary>
		/// Price
		/// </summary>
		public decimal Price { get; set; }



		/// <summary>
		/// Discount
		/// </summary>
		public decimal Discount { get; set; }



        /// <summary>
        /// 退款折扣
        /// </summary>
        public decimal RDiscount { get; set; }




        /// <summary>
        /// UpperTime
        /// </summary>
        public DateTime UpperTime { get; set; }



		/// <summary>
		/// LowerTime
		/// </summary>
		public DateTime? LowerTime { get; set; }



		/// <summary>
		/// AuditStatus
		/// </summary>
		public AuditStatusEnum AuditStatus { get; set; }



		/// <summary>
		/// 价格名称
		/// </summary>
		public string TicketName { get; set; }
		public string UpperTimeStr { get { return UpperTime.ToString("yyyy-MM-dd HH:mm:ss"); } }
        public string LowerTimeStr { get { return LowerTime!=null?((DateTime)LowerTime).ToString("yyyy-MM-dd HH:mm:ss"):""; } }
        public string CreationTimeStr { get { return this.CreationTime.ToString("yyyy-MM-dd HH:mm:ss"); } }

		/// <summary>
		/// 仓位
		/// </summary>
		public WareHousePosition WarePosition { get; set; }
		/// <summary>
		/// 仓位中文名
		/// </summary>
		public string WarePositionName { get; set; }
	}
}